from utils.base_api import BaseApi
from utils.wrapper import api_call


class AuthApi(BaseApi):

    @api_call
    def code_api(self):
        """
        获取接口的响应信息

        """
        api = self.conf_data['api']['auth']['code']
        data = {
            'url': self.host + api,
            'method': 'get',
            'headers': self.headers,
            'json': {}
        }
        response = self.send_http(data)
        return response


